package cn.iocoder.springboot.lab17.dynamicdatasource.mapper;

import cn.iocoder.springboot.lab17.dynamicdatasource.constant.DBConstants;
import cn.iocoder.springboot.lab17.dynamicdatasource.dataobject.MyParamDo;
import cn.iocoder.springboot.lab17.dynamicdatasource.dataobject.MySystemDO;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
@DS(DBConstants.DATASOURCE_MY)
public interface MyMapper {


    int addSystem(MySystemDO mySystemDO);

    Map<String, String> getInfoPointId(@Param("projectId") String projectId, @Param("classCode") String classCode, @Param("code") String code);

    int addParam(MyParamDo myParamDo);

    int deleteSystem(@Param("projectId") String projectId);

    int deleteObjectParam(@Param("projectId") String projectId);

    String getAdmConstructionJidianMapping(@Param("type") String type, @Param("old") String old);

}
